public class Symbol {

    public static enum Type {tINVALID, tVOID, tINT, tFLOAT};

    String name;
    Type type;
    Scope scope;
    public Symbol(String name) {
        this.name = name;
    }
    public Symbol(String name, Type type) {
        this.name = name;
        this.type = type;
    }
    public String getName() {
        return this.name;
    }

    @Override
    public String toString() {
        if (this.type != Type.tINVALID) return '<' + getName() + ':' + this.type + '>';
        return getName();
    }
}
